//
//  PhotoTableViewCell.m
//  艾听歌
//
//  Created by dllo on 16/5/25.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "PhotoTableViewCell.h"

@implementation PhotoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.Image = [[UIImageView alloc] init];
//        self.Image.backgroundColor = [UIColor yellowColor];
        [self.contentView addSubview:self.Image];
        
        self.headerImage = [[UIImageView alloc] init];
//        self.headerImage.backgroundColor = [UIColor redColor];
        [self.Image addSubview:self.headerImage];
        
        self.Amusic = [[UILabel alloc] init];
//        self.Amusic.backgroundColor = [UIColor blackColor];
        [self.Image addSubview:self.Amusic];
        
        self.number = [[UILabel alloc] init];
//        self.number.backgroundColor = [UIColor purpleColor];
        [self.contentView addSubview:self.number];
        
        self.singerLabel = [[UILabel alloc] init];
//        self.singerLabel.backgroundColor = [UIColor blueColor];
        [self.contentView addSubview:self.singerLabel];
        
        self.mesege = [[UILabel alloc] init];
//        self.mesege.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:self.mesege];
        
        self.playcount = [[UILabel alloc] init];
//        self.playcount.backgroundColor = [UIColor brownColor];
        [self.Image addSubview:self.playcount];
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.Image.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 170 * fitHeight);
//    self.headerImage.frame = CGRectMake(15, 160, 30, 30);
    self.Amusic.frame = CGRectMake(75 * FitWidth, 240 * FitWidth, 200 * FitWidth, 20 * fitHeight);
//    self.playcount.frame = CGRectMake(55, 165, 60, 20);
    self.number.frame = CGRectMake(10, 10, 40 * FitWidth, 40 * fitHeight);
    self.singerLabel.frame = CGRectMake(75, 200 * FitWidth, 200 * FitWidth, 30);
//    self.name.frame = CGRectMake(75, 240, 200, 20);
    
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
